<div class="breadcrum">
    <p><a href="#">Settings</a>
        <a href="#"></a><span></span>
        <a href="{$config->site_url('pengaturan/operator')}">Operator</a><span></span>
        <small>Add Data</small>
    </p>
    <div class="clear"></div>
</div>
<!-- notification template -->
{include file="base/templates/notification.html"}
<!-- end of notification template-->
<form action="{$config->site_url('pengaturan/operator/add_process')}" method="post" enctype="multipart/form-data">
    <table class="table-input" width="100%">
        <tr class="headrow">
            <th colspan="4">Data Pribadi</th>
        </tr>
        <tr>
            <td width="15%">Nama Lengkap</td>
            <td width="35%">
                <input name="petugas_name" type="text" value="{$result.petugas_name|default:''}" size="35" maxlength="45" />
                <em>* wajib diisi</em>
            </td>
            <td>Jabatan</td>
            <td>
                <input name="petugas_jabatan" type="text" value="{$result.petugas_jabatan|default:''}" size="30" maxlength="45" />
            </td>
        </tr>      

        <tr>
            <td>Alamat</td>
            <td>
                <input name="petugas_alamat" type="text" value="{$result.petugas_alamat|default:''}" size="60" maxlength="100" />
            </td>
            <td>Nomor Telepon</td>
            <td> 
                <input name="petugas_telepon" type="text" value="{$result.petugas_telepon|default:''}" size="30" maxlength="50" />
            </td>
        </tr>

        <tr class="headrow">
            <th colspan="4">User Account</th>
        </tr>
        <tr>
            <td>Username </td>
            <td>
                <input name="user_name" type="text" value="{$result.user_name|default:''}" size="20" maxlength="30" />
                <em>* wajib diisi</em>
            </td>
            <td colspan="2" rowspan="3" align="left">
                <img src="{$BASEURL}resource/doc/images/users/default.png" alt="" style="height: 76px; border: 1px solid #999; background-color: #fff; padding: 5px;" />
                <input type="file" name="user_img" />
                <em>Max size 1024 x 768 px</em>
            </td>
        </tr>
        <tr>
            <td>Password</td>
            <td>
                <input name="user_pass" type="password" value="{$result.user_pass|default:''}" size="20" maxlength="30" />
                <em>* wajib diisi</em>
            </td>
        </tr>
        <tr>
            <td>Email</td>
            <td>
                <input name="user_mail" type="text" value="{$result.user_mail|default:''}" size="30" maxlength="50" />
            </td>
        </tr>
        <tr>
            <td>Role</td>
            <td>
                <select name="role_id">
                    <option value=""></option>
                    {foreach from=$rs_com_role item=data}
                    <option value="{$data.role_id|default:''}" {if {$result.role_id|default:''} eq $data.role_id}selected="selected"{/if}>{$data.role_nm}</option>
                    {/foreach}
                </select>
                <small>* wajib diisi</small>
            </td> 
        </tr>
        <tr class="submit-box">
            <td colspan="4">
                <input type="submit" name="save" value="Simpan" class="edit-button" />
                <input type="reset" name="save" value="Reset" class="edit-button" />
            </td>
        </tr>
    </table>
</form>
